package com.nondo.dean.order.model.result;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.order.domain.OrderSubject;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author xiaofan
 * @Description: 订单详情页面
 * @throws
 * @date 2018-04-2017:33
 * @Version
 */
public class OrderSubjectResult {
    /**
     * 主键Id
     */
    private  Integer id;
    /**
     * 采购订单编码
     */
    private String orderCode;
    /**
     * 客户编号
     */
    private String userNo;
    /**
     * 客户名称
     */
    private String userName;

    /**
     * 客户联系电话
     */
    private String userTelphone;
    /**
     * sap订单号
     */
    private String sapCode;
    /**
     * 订单金额
     */
    private BigDecimal amount;
    /**
     * 定制金额
     */
    private BigDecimal specialAmount;
    /**
     * 客户地址
     */
    private String userAddress;
    /**
     * 审批状态
     */
    private Integer auditStatus;

    /**
     * 备注
     */
    private String note;

    /**
     * 所属区域
     */
    private String region;

    /**
     * 接单员
     */
    private String orderTakeUser;

    /**
     * 事业部代码
     */
    private String businessCode;

    /**
     * 导购员
     */
    private String saleGuide;

    /**
     * 送货员
     */
    private String deliveryUser;
    /**
     * 创建人
     */
    private Date createBy;
    /**
     * 更新人
     */
    private Long updateBy;
    /**
     * 更新时间
     */
    private Date updateDate;
    /**
     * 创建时间
     */
    private String createDate;
    /**
     * 删除标记
     */
    private String delFlag;

    /**
     * 合同编号
     */
    private String contract;

    /**
     * 客户等级
     */
    private String userType;

    /**
     * sap账号
     */
    private String sapAccount;
    /**
     * 订单明细数据
     */

    private List<OrderSubjectDetailResult> orderSubjectDetailResultList;

    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserTelphone() {
        return userTelphone;
    }

    public void setUserTelphone(String userTelphone) {
        this.userTelphone = userTelphone;
    }

    public String getSapCode() {
        return sapCode;
    }

    public void setSapCode(String sapCode) {
        this.sapCode = sapCode;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getSpecialAmount() {
        return specialAmount;
    }

    public void setSpecialAmount(BigDecimal specialAmount) {
        this.specialAmount = specialAmount;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getOrderTakeUser() {
        return orderTakeUser;
    }

    public void setOrderTakeUser(String orderTakeUser) {
        this.orderTakeUser = orderTakeUser;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public String getSaleGuide() {
        return saleGuide;
    }

    public void setSaleGuide(String saleGuide) {
        this.saleGuide = saleGuide;
    }

    public String getDeliveryUser() {
        return deliveryUser;
    }

    public void setDeliveryUser(String deliveryUser) {
        this.deliveryUser = deliveryUser;
    }

    public Date getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Date createBy) {
        this.createBy = createBy;
    }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getSapAccount() {
        return sapAccount;
    }

    public void setSapAccount(String sapAccount) {
        this.sapAccount = sapAccount;
    }



    public List<OrderSubjectDetailResult> getOrderSubjectDetailResultList() {
        return orderSubjectDetailResultList;
    }

    public void setOrderSubjectDetailResultList(List<OrderSubjectDetailResult> orderSubjectDetailResultList) {
        this.orderSubjectDetailResultList = orderSubjectDetailResultList;
    }

    public OrderSubjectResult() {
    }

    public OrderSubjectResult(Integer id, String orderCode, String userNo, String userName, String userTelphone, String sapCode, BigDecimal amount, BigDecimal specialAmount, String userAddress, Integer auditStatus, String note, String region, String orderTakeUser, String businessCode, String saleGuide, String deliveryUser, Date createBy, Long updateBy, Date updateDate, String createDate) {
        this.id = id;
        this.orderCode = orderCode;
        this.userNo = userNo;
        this.userName = userName;
        this.userTelphone = userTelphone;
        this.sapCode = sapCode;
        this.amount = amount;
        this.specialAmount = specialAmount;
        this.userAddress = userAddress;
        this.auditStatus = auditStatus;
        this.note = note;
        this.region = region;
        this.orderTakeUser = orderTakeUser;
        this.businessCode = businessCode;
        this.saleGuide = saleGuide;
        this.deliveryUser = deliveryUser;
        this.createBy = createBy;
        this.updateBy = updateBy;
        this.updateDate = updateDate;
        this.createDate = createDate;
    }

    public static OrderSubjectResult coverToBean(OrderSubject orderSubject){
        OrderSubjectResult orderSubjectResult=new OrderSubjectResult();
        BeanUtils.copy(orderSubject,orderSubjectResult);
        return orderSubjectResult;
    }
}
